
package javaes.controlador;

import java.util.List;
import javaes.dados.uf.UFDAO;
import javaes.dados.uf.UFDAOHibernate;
import javaes.modelo.Pais;
import javaes.modelo.UF;

/**
 *
 * @author @author http://javaes.wordpress.com
 */
public class UFRN implements IUFRN
{
    private UFDAO ufDAO;
    
    public UFRN()
    {
        this.ufDAO = new UFDAOHibernate();
    }
    
    @Override
    public void salvar(UF uf) throws Exception 
    {
        this.ufDAO.salvar(uf);
    }

    @Override
    public void excluir(UF uf) throws Exception 
    {
        this.ufDAO.excluir(uf);
    }

    @Override
    public List<UF> listar() throws Exception 
    {
        return this.ufDAO.listar();
    }

    @Override
    public List<UF> listar(Pais pais) throws Exception 
    {
        return this.ufDAO.listar(pais);
    }

    @Override
    public UF buscaPorID(long id) throws Exception 
    {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public UF buscaPorSigla(String sigla) throws Exception 
    {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
